<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增操作员信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-oper_info-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">账号名称：</label>
                <div class="col-sm-8">
                    <input name="accountName" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">账号密码：</label>
                <div class="col-sm-8">
                    <input name="password" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">Token：</label>
                <div class="col-sm-8">
                    <input name="accessToken" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">ETC 账户号：</label>
                <div class="col-sm-8">
                    <input name="accountId" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">账号类型：</label>
                <div class="col-sm-8">
                    <select name="sysSource" class="form-control m-b">
                        <option value="0">运营</option>
                        <option value="1">经销商</option>

                    </select>

                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">企业Id：</label>
                <div class="col-sm-8">
                    <select name="enterpriseId" class="form-control m-b">

                        <option value="XDZN">仙豆</option>
                        <option value="CC01">长城</option>
                    </select>

                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">姓名：</label>
                <div class="col-sm-8">
                    <input name="name" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">性别：</label>
                <div class="col-sm-8">
                    <input name="gender" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">邮箱：</label>
                <div class="col-sm-8">
                    <input name="email" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">手机号：</label>
                <div class="col-sm-8">
                    <input name="phone" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">部门Id：</label>
                <div class="col-sm-8">
                    <input name="deptId" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">部门名称：</label>
                <div class="col-sm-8">
                    <input name="deptName" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">经销商 Code：</label>
                <div class="col-sm-8">
                    <input name="dealerCode" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">经销商名称：</label>
                <div class="col-sm-8">
                    <input name="dealerName" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">角色 Id：</label>
                <div class="col-sm-8">
                    <input name="roleCode" class="form-control"  type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "operinfo/oper_info"
        $("#form-oper_info-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-oper_info-add').serialize());
            }
        }
    </script>
</body>
</html>